import request from '@/utils/request'

export function getViewConfDefault() {
  let url = '/api/view-conf?name=DEFAULT'
  return request({
    url: url,
    method: 'get'
  })
}

export function postViewconf(data) {
  let url = '/api/view-conf'
  return request({
    url: url,
    method: 'post',
    data: data
  })
}

export function updateViewconf(id,data) {
  let url = '/api/view-conf/' + id
  return request({
    url: url,
    method: 'put',
    data: data
  })
}

